<?
class Vakanz_CRM_Db_Table extends General_Db_Table {
	protected $_rowsetClass = 'Vakanz_CRM_Db_Table_Rowset';
	
	protected $_metadataCacheInClass = false;
	
	protected $_dependentData = array();
	
	private $instances = array();
	
	/*public function __construct($config = array() ) {
		if (!empty(self::$instances[get_class($this)])) {
			$this = self::$instances[get_class($this)];
		} else {
			parent::__construct($config);
			self::$instances[get_class($this)] = $this;
		}
	}*/
	
	public function getNewId($name) {
		$query = $this	->select()
						->from($this->info('name'), array('id' => 'MAX('.$name.')'));
		return intval($this->getAdapter()->fetchOne($query)) +1;
	}
}